//
//  YYSeraviceCell.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/8/1.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYSeraviceCell.h"

@implementation YYSeraviceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.ShadowView.layer.shadowOffset = CGSizeMake(1, 1);
    self.ShadowView.layer.shadowOpacity = 0.8;
    self.ShadowView.layer.shadowColor = [UIColor colorWithWhite:0.7 alpha:1].CGColor;
    self.lbTag.layer.borderColor = [UIColor colorWithHexString:@"2ee6b4"].CGColor;
    self.lbTag.layer.borderWidth = 0.75;
    self.lbTag.layer.cornerRadius = 2;
    
}

-(void)setModel:(YYSeverModel *)model{
    _model = model;
    [self.Picture sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",DEF_INTERFACE_WEBVIEWSERVICE,model.seller_img]]];
    self.lbName.text = model.seller_name;
    self.LbIntroduction.text = model.seller_address;
    self.lbTag.text = model.name;
    self.lbCount.text = [NSString stringWithFormat:@"%@人购买",model.sum];
    self.statusImg.hidden = ![model.is_exchange boolValue];
}
@end
